package com.sc.nft.enums;

import lombok.Getter;

@Getter
public enum SignboardEnum {
    DEFAULT(0, "缺省"),
    SPACE(1, "空间,需要前端做十一维空间的请求操作"),
    ;

    SignboardEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    public static SignboardEnum getEnum(Integer signboard) {
        SignboardEnum[] values = values();
        for (SignboardEnum value : values) {
            if (value.getCode().equals(signboard)) {
                return value;
            }
        }
        return null;
    }
}
